<?php

include_once dirname(dirname(__FILE__)) . '/include/common.php';
$core = new core();
$order_id = isset($_POST["order_id"]) ? intval($_POST["order_id"]) : 0;
$order = $core->getOrderById($order_id);
if ($order) {
    
    echo json_encode(array('type' => 0,'order_id'=>$order_id, 'zen_order_name' => $order->zen_order_name,
        'zen_order_description' => $order->zen_order_description));
    die;
} else {
    echo json_encode(array('type' => 1, 'msg' => "Đợt hàng không tồn tại!"));
    die;
}
?>
